Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Yoshi Nimrebergflar 28.Nov.03 12:53 PM a Web browser
Notes Client 6.0.2 CF2 All Platforms


Hi
I have a relatively simple program:
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
If uidoc.EditMode = True Then
Call uidoc.Save
uidoc.Editmode = False
Else
uidoc.EditMode = True
End If
End Sub

Or..

@If(@IsDocBeingEdited;
@Do(
@Command([FileSave]);
@Command([EditDocument];"0")
);
@Do(
@Command([EditDocument];"1")
)
)

Does more or less the same thing, changing between Editmode and not. Unfortunately it is possible that I change some values while editing the document, which would change the position of that document in the view from where I opened it in the first place. What happens now is, it opens the next or previeous document from that view, instead of keeping the document and changing between the the modes. In the debugger I can see, that the UID of the Uidoc is always the same, but it only opens the document (or changes the mode) AFTER the End Sub statement.
If I try it from another view where the position does not change, in runs perfectly.
I also tried to do in manualy with uidoc.close (True) but the [immediate] does not work either.
Can anybody please explain me, why EditMode has something to do with the "current" view? Is there a workaround for this?
Thanks
cti






EditMode problem: Can somebody expl... (~Yoshi Nimreber... 28.Nov.03)
. . RE: EditMode problem: Can somebody ... (~Keiko Cisfoote... 1.Dec.03)
. . . . RE: EditMode problem: Can somebody ... (~Yoshi Nimreber... 2.Dec.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS